Streamlined JS. Added shortcodes and ajax for updating meta