Would it be dangerous to send all the wp_options to javascript file?

Definitely a really bad idea. Just send what you need, exposing all this data publicly opens a lot (and some more) attack vectors.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)