adding shared JS and fixing short code forms