Made jquery work; Load JS at the bottom; Fix button events