changed js for onlu one frame per bill