#7 Replaced all inline JS variables with wp_localize_script

@mturalenka please review and merge