Fixed JS bug preventing featured image to be selected
Also removed redundant gallery.js file

Signed-off-by: Elliot Condon <e@elliotcondon.com>